home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
201-220
/
scopedisk214
/
req
/
req.doc
< prev
next >
Wrap
Text File
|
1995-03-19
|
4KB
|
89 lines
Req, The file requester shell.
© 1991 Arnie Cachelin, HyperActive InterMedia
Req lets you easily load files into any dos command or script using
the Workbench 2.x file requester. Req can be used with a single
command from the Shell or a script, or with multiple commands from the
Workbench -- just enter it into the Req icon's ToolTypes array. Req
works only under Workbench 2.x.
So What?
This means creating and editing simple scripts without a text
editor. This means easy file requester access for countless utilities
like sound players and un-arcers (see the examples in the included
icon). This means icon launched scripts which are self-contained, and
don't care where iconx is.
Setting The Commands
To set the program icon's tooltypes, click on the icon, then
select 'Information' in the Workbench/Icons menu. When the info
window comes up, click on the tooltype entry in the list to edit that
entry, or select 'New' to add an entry. When the entry is complete,
hit return to place it in the list, and click the save button to exit.
Now double-click on the Req icon, and you will see the Req file
requester appear on your Workbench screen. Now select a file, and the
command(s) you entered will be executed using the file you picked.
Note that the first command will appear in the requester title. If
you are satisfied with the performance, you should duplicate Req, and
rename it in a way which makes its function apparent.
Entries should be valid commands, and appear as they would be
typed in a CLI window, with the full path of the command specified.
The path and the name of the selected file will be substituted into
successive occurances of "%s" in the command entry. (i.e. if the file
MyDisk:CoolPic is processed with the command entry 'C:Show "%s%s"',
the first %s will be replaced with 'MyDisk:' and the second, by
'CoolPic'.) Quotes (") around the file/path symbols are not required
by Req, but will allow file names which contain spaces to be processed
in most cases.
Req sends a command's output to a default output window, unless a
custom window specification is included. If you don't want a window
to appear, use WINDOW=NIL: in the tooltypes array. If you don't want
that tooltype executed as if it were a command, use a blank line
tooltype to separate 'WINDOW=' entry from the last command entry.
This window snaps shut immediately after the command finishes.
Req also works when run with a command string from the CLI. It
is particularly fun to use it in an alias in the s:Shell-Startup file
which will give your favorite commands a file requester (i.e. ALIAS
Pic req "C:show %s%s"). Req will also take a file name to launch the
requester with as an optional third argument.
C Programmers
Source code for Req is included. It is a quite simple program I
should also try to use AmigaDOS 2.0 Makelink command rather than
duplicating the file for different icons.
I really like this little program, and am glad WB 2.0 makes it so
easy to do. I also feel kinda object-oriented when I can encapsulate
all the program's configuration data in its icon. I hope you find
this useful and interesting. My inspiration for this program is Eric
Schwertfeger's excellent MicroBrowser utility, which uses the arp file
requester.
Req is freely distributable shareware, please send whatever
contribution you consider appropriate.
Please send suggestions, bug reports, updates, jobs, candygrams, etc.
to:
Arnie Cachelin
1743 Hayes St.
San Francisco, CA 94117